const express = require('express');
const ejs = require('ejs');
const {heros} = require('./data/lol.json');
const app = express();
// 设置模板引擎
app.set('views',__dirname+'/views');
app.engine('abc',ejs.renderFile);
app.listen(80)
app.use(express.static(__dirname+'/public'))
app.get('/',(req,res)=>{
    // res.send('end');
    res.render('index.abc',{heros})
})
